package com.financial.service.heemoney.convertor;

import com.financial.service.heemoney.dto.HeemoneyConfigDTO;
import com.financial.service.heemoney.dto.businsess.HeemoneyPaySplitQueryBussinessDTO;
import com.financial.service.heemoney.dto.commmon.HeemoneyPaySplitQueryCommonDTO;
import com.financial.service.heemoney.dto.inparameter.HeemoneyPaySplitQueryInParamDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @Author: zhaopengjun
 * @Email dashuaizhao@aliyun.com
 * @Date: 2020/3/30 10:19
 * @Des
 */
@Mapper
public interface HeemoneyPaySplitQueryConvert {

    HeemoneyPaySplitQueryConvert MAPPER = Mappers.getMapper(HeemoneyPaySplitQueryConvert.class);

    @Mapping(target = "method", source = "heemoneyConfigDTO.heemoneyPaySettleQuery.method")
    @Mapping(target = "key",source ="heemoneyConfigDTO.heemoneyPaymentType.key")
    HeemoneyPaySplitQueryCommonDTO convertCommonDTO(HeemoneyConfigDTO heemoneyConfigDTO, HeemoneyPaySplitQueryInParamDTO  heemoneyPaySplitQueryInParamDTO);

    HeemoneyPaySplitQueryBussinessDTO convertBusinessDTO(HeemoneyPaySplitQueryInParamDTO heemoneyPaySplitQueryInParamDTO);

}
